import { defineStore } from "pinia"

export const useUserStore = defineStore({
  id: "user-info",
  state: () => {
    return {
      userInfo: {
        name: ""
      }
    }
  },
  actions: {
    async setUserInfo(val: string) {
      this.userInfo.name = val
    }
  },
  persist: true
})
